//
//  RSWebView+Proxy.h
//  StaffTax
//
//  Created by 侯伟 on 2020/3/13.
//  Copyright © 2020 侯伟. All rights reserved.
//

#import "RSWebView.h"

NS_ASSUME_NONNULL_BEGIN

@interface RSWebView (Proxy)

@property(nonatomic,assign,readonly)BOOL canGoBack;

@property(nonatomic,assign,readonly)BOOL canGoForward;

@property(nonatomic,assign,readonly)BOOL isLoading;

@property(nonatomic,copy,readonly)NSString* title;

@property(nonatomic,copy,readonly)NSURL* url;

- (WKNavigation* _Nullable)loadURLString:(NSString*)urlString;

- (WKNavigation* _Nullable)loadURL:(NSURL *)url;

- (WKNavigation* _Nullable)loadHTMLString:(NSString*)htmlString baseURL:(NSURL*)baseURL;

- (WKNavigation* _Nullable)reload;

- (WKNavigation* _Nullable)reloadFromOrigin;

- (void)stopLoading;

- (nullable WKNavigation *)goBack;

- (nullable WKNavigation *)goForward;

- (void)evaluateJavaScript:(NSString*)javaScriptString completionHandler:(void(^)(id,NSError*))completionHandler;


@end

NS_ASSUME_NONNULL_END
